﻿/*****************************************************************//**
 * @file    FITKGraphObjectLineBase.h
 * @brief   Graph object for assembly element base.
 *
 * @author  ChengHaotian (yeguangbaozi@foxmail.com)
 * @date    2024-07-03
 *********************************************************************/

#ifndef __FITKGRAPHOBJECTLINEBASE_H__
#define __FITKGRAPHOBJECTLINEBASE_H__

#include "FITKGraphObjectMarkBase.h"

#include "FITKVTKGraphAdaptorAPI.h"

// Forward declaration

namespace Exchange
{
    /**
     * @brief   Graph object for assembly element base.
     * @author  ChengHaotian (yeguangbaozi@foxmail.com)
     * @date    2024-07-03
     */
    class FITKVTKGRAPHADAPTORAPI FITKGraphObjectLineBase : public FITKGraphObjectMarkBase
    {
        // Regist
        FITKGraphObjectRegist(FITKGraphObjectLineBase, FITKGraphObjectMarkBase);
        FITKCLASS(Exchange, FITKGraphObjectLineBase);

    public:
        /**
         * @brief   Constructor.
         * @param   caseData: The case data
         * @param   markData: The mark data object
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-03
         */
        FITKGraphObjectLineBase(AbaqusData::FITKDataCase* caseData, Core::FITKAbstractDataObject* markData);

        /**
         * @brief   Destructor.[virtual]
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-03
         */
        virtual ~FITKGraphObjectLineBase() = default;

    protected:
        /**
         * @brief   Internal struct for storing line information.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-03
         */
        struct _LineInfo
        {
            int _ModelId_1 = -1;
            int _NodeId_1 = -1;

            int _ModelId_2 = -1;
            int _NodeId_2 = -1;
        };

        /**
         * @brief   Constructor.
         * @author  ChengHaotian (yeguangbaozi@foxmail.com)
         * @date    2024-07-03
         */
        FITKGraphObjectLineBase() = default;

    };
}   // namespace Exchange

#endif // __FITKGRAPHOBJECTLINEBASE_H__
